package com.example.im.ui.adapter.pagerimport android.view.ViewGroupimport androidx.fragment.app.Fragmentimport androidx.fragment.app.FragmentManagerimport androidx.fragment.app.FragmentPagerAdapterclass MainPagerAdapter(fm: FragmentManager, private val fragments: MutableList<Fragment>) : FragmentPagerAdapter(fm) {    override fun getItem(i: Int): Fragment {        return fragments[i]    }    override fun getCount(): Int {        return fragments.size    }    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {    }}